/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2024-03-17 09:35:20
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2024-03-17 10:19:56
 */

import request from '@/projects/shop/utils/request'

export function getFansTags(params) {
  return request({
    url: '/officialaccount/usertag/list',
    method: 'get',
    params
  })
}

export function addFansTag(params) {
  return request({
    url: '/officialaccount/usertag/create-tag',
    method: 'post',
    data: params
  })
}

export function updateFansTag(params) {
  return request({
    url: '/officialaccount/usertag/up-tag',
    method: 'post',
    data: params
  })
}

export function deleteFansTag(params) {
  return request({
    url: '/officialaccount/usertag/del-tag',
    method: 'post',
    data: params
  })
}

export function getFansTag(params) {
  return request({
    url: '/officialaccount/usertag/user-tags',
    method: 'post',
    data: params
  })
}

export function addTagFansList(params) {
  return request({
    url: '/officialaccount/usertag/tag-users',
    method: 'post',
    data: params
  })
}

export function untagUsers(params) {
  return request({
    url: '/officialaccount/usertag/untag-users',
    method: 'post',
    data: params
  })
}
